package com.springcloud.config.client.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Desc:
 * @Date: 2020-06-26
 * @Version:v1.0
 */
@RestController
public class ConfigClientController {

    @Value("${foo}")
    private String foo;

    @Value("${server.port}")
    private String port;

    @GetMapping("/foo")
    public String getFooValue() {
        return "hello, config client, this is" + port + ", foo value is " + foo;
    }
}
